-module(attr_desc_data).

-export([
    get/1
    ,to_str/1
    ,label_to_integer/1
]).


<?php
$data = $xmlData[0];
array_shift($data);
array_shift($data);
array_shift($data);

foreach ($data as $v): ?>
get(<?=$v['number']?>) -> {<?=$v['number']?>, <?=$v['label']?>};
<?php endforeach; ?>
get(_Integer) -> undefined.

<?php
foreach($data as $v): ?>
to_str(<?=$v['number']?>) -> <<"<?=$v['name']?>"/utf8>>;
<?php endforeach; ?>
to_str(_Integer) -> <<>>.

<?php
foreach($data as $v): ?>
label_to_integer(<?=$v['label']?>) -> <?=$v['number']?>;
<?php endforeach; ?>
label_to_integer(_Label) -> 0.
